function getTime() {
    var myDate = new Date();
    document.getElementById("_date").innerText = myDate.toLocaleDateString();
    var week = "";
    if (myDate.getDay() == 0) {
        week = "星期天";
    }
    if (myDate.getDay() == 1) {
        week = "星期一";
    }
    if (myDate.getDay() == 2) {
        week = "星期二";
    }
    if (myDate.getDay() == 3) {
        week = "星期三";
    }
    if (myDate.getDay() == 4) {
        week = "星期四";
    }
    if (myDate.getDay() == 5) {
        week = "星期五";
    }
    if (myDate.getDay() == 6) {
        week = "星期六";
    }

    document.getElementById("_week").innerText = week;
}

function getLoginer(type) {
    var userName = window.document.getElementById("_user_name");
    $.ajax({
        url:"../loginer?type="+type,
        type:"GET",
        dataType:"json",
        success:function(data){
            console.log(data);
            if(data.code==0){
                var tdata=data.object;
                userName.innerText = tdata.name;
            }
        },
        error:function(){
            alert("search fails！");
        }
    });

}